﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RendicionListGrid.ascx.cs" 
Inherits="UILGestion.ObraAdmin.RendicionCaja.RendicionListGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>


<asp:Panel runat="server" ID="PanelRecepcion" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="lb2" CommandName="Sort" ForeColor="Blue" CommandArgument="numDocumento" runat="server">NUMERO</asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="fechaVB" ForeColor="Blue" runat="server">FECHA</asp:LinkButton>
                </th>
                
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="custodio"  ForeColor="Blue" runat="server">RESPONSABLE</asp:LinkButton>
                </th>
                
                  
                 <th id="Th8" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" CommandArgument="estadoStr" ForeColor="Blue" runat="server">ESTADO</asp:LinkButton>
                </th>
                
                <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" CommandArgument="totalGastadoStr" ForeColor="Blue" runat="server">TOTAL</asp:LinkButton>
                </th>
                
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
            <td width="90px">
                <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumento").ToString()%>'  
                 Target="_self"  ID="OrdenCompra"
                NavigateUrl='<%# "~/ObraAdmin/RendicionCaja/RendicionEditForm.aspx?id="+ 
                DataBinder.Eval (Container.DataItem,"idInternal").ToString() + 
                 "&idObra=" + DataBinder.Eval(Container.DataItem,"idObra").ToString()%>'  />   
                
            </td>
            
            <td  width="85px">
                    <%# Eval("fechaVB")%> <br />
            </td>
          
             <td>
                <%# Eval("custodio")%><br />
            </td>
            
             <td>
                <%# Eval("estadoStr")%><br />
            </td>
             <td align="right" Width="90px">
            <%# Eval("totalGastadoStr")%><br />
            
            </td>
            
         

         
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     